﻿#pragma once
#include <QMessageBox>
#include <QSqlDataBase>
#include <QSqlQuery>
#include <QString>

class connection
{
private:
	QSqlDatabase db;		// 数据库
	bool isOpen;
public:
	connection();

	QSqlDatabase& GetDatabase() {
		return db;
	}
public:
	bool IsOpen() {
		return isOpen;
	}
};

